package com.zhuimeng.redisdemo.service;

import com.zhuimeng.redisdemo.dao.PositionDao;
import com.zhuimeng.redisdemo.pojo.Position;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PositionService {
    @Autowired
    private PositionDao positionDao;

    @Cacheable(value="mycache")
    public List<Position> getResume(){
        return positionDao.findAll();
    }
}
